//
//  LittleBallConfigViewController.h
//  LittleBall
//
//  Created by mac on 11-12-23.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MessageUI/MessageUI.h>
#import "LittleBallViewController.h"
#import "LittleBallPlayViewController.h"
#import "LittleBallGameManagement.h"
#import "LittleBallGameCenterViewController.h"

@interface LittleBallConfigViewController : UIViewController <MFMailComposeViewControllerDelegate> 
{    
    IBOutlet UIButton           *m_feedback;
    IBOutlet UISegmentedControl *difficultySelection;
    
    IBOutlet UIButton *m_confirm;
    IBOutlet UIButton *m_cancel;
    IBOutlet UIButton *m_info;
    
    IBOutlet UIView   *m_infoView;
    IBOutlet UIButton *m_gameCenter;
    
    IBOutlet UISlider *m_musicSlider;
    IBOutlet UISlider *m_soundSlider;
    
    IBOutlet UILabel  *m_lable_difficulty;
    IBOutlet UILabel  *m_lable_music;
    IBOutlet UILabel  *m_lable_sound;

    LittleBallViewController        *creator;
    LittleBallGameManagement        *m_gameManagement;
    LittleBallGameCenterViewController       *gameCenter;
}


- (IBAction)onButton_Confirm:(id)sender;
- (IBAction)onButton_Cancel:(id)sender;
- (IBAction)onButton_info:(id)sender;
- (IBAction)onButton_GameCenter:(id)sender;

- (IBAction)sendFeedBack:(id)sender;
- (IBAction)chooseDifficulty:(id)sender;

- (IBAction)updateMusicVolume:(UISlider*)slider;
- (IBAction)updateSoundVolume:(UISlider*)slider;

- (void)displayComposerSheet;

- (IBAction)configGoBack:(id)sender;
- (IBAction)infoGoBack:(id)sender;

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;

@property (retain, nonatomic) LittleBallViewController *creator;
@property (retain, nonatomic) LittleBallGameManagement *m_gameManagement;

@property (retain) UIButton *m_feedback;
@property (retain) UISegmentedControl *difficultySelection;
@property (retain) UIButton *m_confirm;
@property (retain) UIButton *m_cancel;
@property (retain) UIButton *m_info;
@property (retain) UIView *m_infoView;
@property (retain) UISlider *m_musicSlider;
@property (retain) UISlider *m_soundSlider;
@property (retain) UILabel  *m_lable_difficulty;
@property (retain) UILabel  *m_lable_music;
@property (retain) UILabel  *m_lable_sound;

@end

